package com.tencreat.domain.mall.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tencreat.common.core.domain.dto.BaseEntityDTO;
import com.tencreat.common.enums.OrderType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class MallGoodsRecordDTO extends BaseEntityDTO {

    @ApiModelProperty("商品ID")
    private Long goodsId;

    @ApiModelProperty("商品名称")
    private String goodsName;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("手机号码")
    private String mobile;

    @ApiModelProperty("创建时间-开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @ApiModelProperty("创建时间-结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @ApiModelProperty("秒杀状态 1|成功 2|进行中 3|失败")
    private  Integer status;

    @ApiModelProperty("拼团状态")
    private Integer collageStatus;

    @ApiModelProperty("订单类型")
    private OrderType orderType;
}
